package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分获取记录对象 az_shop_points_income
 * 
 * @author liuwp
 * @date 2025-11-24
 */
public class ShopPointsIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 获取积分 */
    @Excel(name = "获取积分")
    private Long points;

    /** 来源类型：SIGN_IN-签到, TASK-任务, ORDER-订单, ADMIN-管理员调整 */
    @Excel(name = "来源类型：SIGN_IN-签到, TASK-任务, ORDER-订单, ADMIN-管理员调整", dictType = "az_shop_source_type")
    private Integer sourceType;

    /** 来源ID */
    @Excel(name = "来源ID")
    private String sourceId;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredAt;

    /** 状态：1-有效 0-无效 */
    @Excel(name = "状态：0-有效 1-无效", dictType = "sys_yes_no")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }
    public void setSourceType(Integer sourceType) 
    {
        this.sourceType = sourceType;
    }

    public Integer getSourceType() 
    {
        return sourceType;
    }
    public void setSourceId(String sourceId) 
    {
        this.sourceId = sourceId;
    }

    public String getSourceId() 
    {
        return sourceId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setExpiredAt(Date expiredAt) 
    {
        this.expiredAt = expiredAt;
    }

    public Date getExpiredAt() 
    {
        return expiredAt;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("points", getPoints())
            .append("sourceType", getSourceType())
            .append("sourceId", getSourceId())
            .append("description", getDescription())
            .append("expiredAt", getExpiredAt())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
